package com.uo86.am.utils;

import java.io.IOException;

import android.content.Context;
import android.media.MediaPlayer;

public class MediaUtils {
	public static void playMusic(Context context,int ResId) {
		try {
			MediaPlayer mp = MediaPlayer.create(context, ResId);
			mp.prepare();
			mp.start();
		} catch (IllegalStateException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
